package com.qbadroid;

import java.net.MalformedURLException;
import java.net.URL;

public class Article {

	private String title = "";
	private String description = "";
	private URL url;
	
	public void parseToUrl(String str)
	{
		try{
			url = new URL(str);
		}
		catch(MalformedURLException me)
		{
			me.printStackTrace();
		}
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public void addDescription(String description){
		this.description += description;
	}

	public URL getUrl() {
		return url;
	}
	
}
